This ensures the window will be correctly focused, even when using
strict focus mode.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4165>
import * as PopupMenu from '../popupMenu.js';
import * as PanelMenu from '../panelMenu.js';
import * as SwitcherPopup from '../switcherPopup.js';
-import * as Util from '../../misc/util.js';
export const INPUT_SOURCE_TYPE_XKB = 'xkb';
export const INPUT_SOURCE_TYPE_IBUS = 'ibus';
}
_showLayout() {
- Main.overview.hide();
+ const app =
+ Shell.AppSystem.get_default().lookup_app('org.gnome.Tecla.desktop');
- Util.spawn(['tecla']);
+ Main.overview.hide();
+ app?.activate();
}
});